//
//  MineSimpleTbvCell.m
//  XLDoctor
//
//  Created by longma on 2018/8/2.
//  Copyright © 2018年 XLH. All rights reserved.
//

#import "MemerInfoCell.h"

@implementation MemerInfoCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.itemRightView.abbrLabel.hidden = false;

}
- (void)setHemoglobinModel:(MJHemoglobinModel *)hemoglobinModel {
    _hemoglobinModel = hemoglobinModel;
    self.itemRightView.abbrLabel.mj_localizable = hemoglobinAbbr;
    self.topView.titleLabel.mj_localizable = @"Hemoglobin Testing";
    self.topView.number = hemoglobinModel.total;
    self.timeLabel.text = [HealthHelper timeZoneWithDateTime:hemoglobinModel.detectionDateTime dateFormat:MJUIDateFormat4];
    [self.itemRightView setHemoglobinWithRecordModel:hemoglobinModel];

    self.periodLabel.mj_localizable = hemoglobinModel.period;
}
- (void)setTotalCholesterolModel:(MJTotalCholesterolModel *)totalCholesterolModel {
    _totalCholesterolModel = totalCholesterolModel;
    self.itemRightView.abbrLabel.mj_localizable = totalCholesterolAbbr;
    self.topView.titleLabel.mj_localizable = @"Total Cholesterol Testing";
    self.timeLabel.text = [HealthHelper timeZoneWithDateTime:totalCholesterolModel.detectionDateTime dateFormat:MJUIDateFormat4];
    [self.itemRightView setTotalCholesterolWithRecordModel:totalCholesterolModel];
    self.periodLabel.mj_localizable = totalCholesterolModel.period;
    self.topView.number = totalCholesterolModel.total;
}
- (void)setBloodSugarModel:(MJBloodSugarModel *)bloodSugarModel {
    _bloodSugarModel = bloodSugarModel;
    self.itemRightView.abbrLabel.mj_localizable = bloodSugarAbbr;
    self.topView.titleLabel.mj_localizable = @"Blood Glucose Testing";
    self.timeLabel.text = [HealthHelper timeZoneWithDateTime:bloodSugarModel.detectionDateTime dateFormat:MJUIDateFormat4];
    [self.itemRightView setBloodSugarWithRecordModel:bloodSugarModel];
    self.periodLabel.mj_localizable = bloodSugarModel.period;
    self.topView.number = bloodSugarModel.total;

}

-  (void)setGoutDetectionModel:(MJGoutDetectionModel *)goutDetectionModel{
    _goutDetectionModel = goutDetectionModel;
    
    self.itemRightView.abbrLabel.mj_localizable = bloodUricAcidAbbr;
    self.topView.titleLabel.mj_localizable = @"Uric Acid Testing";
    self.timeLabel.text = [HealthHelper timeZoneWithDateTime:goutDetectionModel.detectionDateTime dateFormat:MJUIDateFormat4];
    [self.itemRightView setBloodUricAcidWithRecordModel:goutDetectionModel];
    self.periodLabel.mj_localizable = goutDetectionModel.period;
    self.topView.number = goutDetectionModel.total;
    
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
}


@end
